package com.dgyt.contract.msg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dgyt.contract.msg.entity.DgMsg;
import com.dgyt.contract.msg.mapper.DgMsgMapper;
import com.dgyt.contract.msg.service.IDgMsgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author SQ
 * @since 2020-11-05
 */
@Service
public class DgMsgServiceImpl extends ServiceImpl<DgMsgMapper, DgMsg> implements IDgMsgService {

    @Override
    public IPage<DgMsg> read(Page<?> page, String loginName) {
        return super.baseMapper.read(page,loginName);
    }

    @Override
    public IPage<DgMsg> unread(Page<?> page, String loginName) {
        return super.baseMapper.unread(page,loginName);
    }

    @Override
    public Integer unread_size(String loginName) {
        return baseMapper.unread_size(loginName);
    }

    @Override
    public List<DgMsg> check(String loginName) {
        return baseMapper.check(loginName);
    }


}
